<!DOCTYPE html>
<html>
<head>
    {include file="default/resource" /}
</head>
<body>
{include file="default/header" /}
<div class="main layui-clear">
  <div class="wrap">
    <div class="content">
      <ul class="fly-list">
          {contentlist name="vo" limit='10'}
        <li class="fly-list-li">
          <a href="{$vo.aurl}" class="fly-list-avatar">
            <img src="{$vo.image|default='__HOME__/images/avatar/default.png'}" alt="">
          </a>
          <h2 class="fly-tip">
            <a href="{$vo.aurl}">{$vo.title}</a>
          </h2>
          <p>
            <span>{$vo.time|date='Y-m-d H:i',###}</span>
            <span class="fly-list-hint">
              <i class="iconfont" title="人气">&#xe60b;</i> {$vo.views}
            </span>
          </p>
        </li>
          {/contentlist}
      </ul>
    </div>
  </div>
  <div class="edge">
    <div class="fly-panel leifeng-rank">
      <h3 class="fly-panel-title">{$Think.lang.quanwenjiansuo}</h3>
        <form action="{:url('home/Search/index')}" method="post">
            <div class="layui-input-inline" style="margin-left:20px;width: 200px;">
                <input value="{$keyword|default=''}" class="layui-input" placeholder="{$Think.lang.guanjianci}" type="text" name="keyword">
            </div>
            <div class="layui-input-inline" style="width: 100px;">
                <input class="layui-btn" type="submit" value="{$Think.lang.sousuo}">
            </div>
        </form>
        <div style="margin: 15px 20px">
            <a class="layui-btn ajax" style="cursor: pointer" data-params='{"url": "{:url("api/api/change")}","confirm":"false","data":"lang=zh-cn","complete":"chang"}'>
                {$Think.lang.zhongwen}
            </a>
            <a class="layui-btn ajax" style="cursor: pointer" data-params='{"url": "{:url("api/api/change")}","confirm":"false","data":"lang=en-us","complete":"chang"}'>
                {$Think.lang.yingwen}
            </a>
        </div>
    </div>
    <dl class="fly-panel fly-list-one">
      <dt class="fly-panel-title">{$Think.lang.shouyetuijian}</dt>
        {contentlist name="vo" limit='2' pos_id='1'}
      <dd>
        <a href="{$vo.aurl}">{$vo.title}</a>
        <span><i class="iconfont">&#xe60b;</i> {$vo.views}</span>
      </dd>
        {/contentlist}
    </dl>
    <div class="fly-panel fly-link">
      <h3 class="fly-panel-title">{$Think.lang.youqinglianjie}</h3>
      <dl>
          {formlist name='vo' table='link'}
            <dd><a href="{$vo.url}" target="_blank">{$vo.name}</a></dd>
          {/formlist}
      </dl>
    </div>
  </div>
</div>
{include file="default/footer" /}
<script>
    layui.use('index');
</script>
</body>
</html>